export const column = [
    {
        label: 'ID',
        name: 'id',
    },

    {
        label: '角色名',
        name: 'name',
    },
    {
        label: '角色描述',
        name: 'desc',
    },

    {
        label: '权限范围',
        name: 'dataId',
        format: (val) => {},
    },
    {
        title: '操作',
        name: 'action',
        width: '260',
        buttons: [],
    },
]

export const config = [
    {
        name: 'name',
        type: 'input',
        placeholder: '请输入角色名',
        label: '角色名',
        required: true,
    },
    {
        name: 'desc',
        type: 'input',
        placeholder: '请输入角色描述',
        label: '角色描述',
        required: true,
    },
    {
        name: 'dataId',
        type: 'cascader',
        label: '权限范围',
        placeholder: '请选择权限范围',
        options: [],
        required: true,
    },
    {
        name: 'menu',
        type: 'cascader',
        label: '访问模块',
        placeholder: '请选择访问模块',
        options: [],
        multiple: true,
        showAllLevels: true,
        checkStrictly: false,
        required: true,
    },
    {
        name: 'operate',
        type: 'switch',
        options: {
            active: { text: '拥有', value: 1 },
            inactive: { text: '不拥有', value: 2 },
        },
        label: '操作权限',
        required: true,
    },
    {
        name: 'logo',
        type: 'image',
        label: '系统logo',
    },
]
